package com.xu.cloud.common.conditional;

import org.springframework.context.annotation.Conditional;

import java.lang.annotation.*;

/**
 * 判断注解是否被声明
 *
 * @author xuguan
 * @since 2023/11/24
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Conditional({OnAnnotationStatementCondition.class})
public @interface ConditionalOnAnnotationStatement {

    /**
     * 判断是否被声明的注解
     */
    Class<? extends Annotation>[] value() default {};
}
